const { exercisesModel } = require('../models/exercisesModel');

// 获取试题
module.exports.getExercises = async function(req, res, ) {
    const data = req.body;
    const result = await exercisesModel.find();
    res.send({
        message: '获取题目数据成功',
        code: 1,
        result
    })
}